package com.ego.manage.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ego.commons.pojo.TreeNode;
import com.ego.manage.service.ITbItemCatService;

@Controller
public class ItemCatController {
	
	@Autowired
	private ITbItemCatService tbItemCatService;
	
	@ResponseBody
	@RequestMapping("/item/cat/list")
	public List<TreeNode> showCat(@RequestParam(defaultValue="0")long id){
		System.out.println(id+"*******************************");
		return tbItemCatService.getCatList(id);
		
	}
	
	
}
